package me.xiaoyan.java.chapter12;

public class VarsDemo {
	//名字
	String name;
	//年龄
	int age;
	
	/**
	 * 介绍
	 */
	public void intro()
	{
		System.out.println(name);
		String name = "小白";
		String hobby = "";
		System.out.println("我叫:" + name + ",今年" 
				+ age + "岁,爱好:" + hobby);
	}
	
	/**
	 * 交朋友
	 */
	public void makeFriends(){
		System.out.println("我叫:" + name +"，我们可以交朋友吗?");		
	}
	
	public static void main(String[] args) {
		new VarsDemo().intro();
	}
}
